/*
 * @Author: wangming
 * @Date: 2021-04-14 18:45:04
 * @LastEditors: wangming
 * @LastEditTime: 2022-08-02 15:12:37
 * @Description: file content
 */
import myMixin from "@/pageComponents/myMixin";
import vmMixin from "@/pageComponents/vmMixin";
export default {
  mixins: [myMixin, vmMixin],
  vmEvents: {
    setContent(content) {
      this.config.__config.content = content;
    },
  },
  render() {
    let { width, content, type } = this.config.__config;
    return (
      <div
        style={{
          width: width + "%",
        }}
      >
        <el-link
          vOn:click_native={() =>
            this.runEventName("click", { values: content })
          }
          underline={false}
          type={type || "primary"}
        >
          {content}
        </el-link>
      </div>
    );
  },
};
